﻿/******************************************************************************
 * ArgStrings.cs
 * 
 * Implements the ArgStrings class which contains arrays that map between the
 * enumerated argument types and their querystring representations
 * 
 * Date:   12/2008
 * 
 * Copyright (c) 2009, Mark Betz 
 * 
 * All rights reserved. 
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions are met: 
 * 
 *   * Redistributions of source code must retain the above copyright 
 *     notice, this list of conditions and the following disclaimer. 
 *   * Redistributions in binary form must reproduce the above copyright 
 *     notice, this list of conditions and the following disclaimer in the 
 *     documentation and/or other materials provided with the distribution. 
 *   * Neither the name of the Author nor the names of contributors may be 
 *     used to endorse or promote products derived from this software
 *     without specific prior written permission. 
 *     
 * THIS SOFTWARE IS PROVIDED BY MARK BETZ ''AS IS'' AND ANY  EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
 * IN NO EVENT SHALL MARK BETZ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 * 
 */
namespace GSearch
{
    /// <summary>
    /// Maps the argument enumerations to their querystring equivs. Dependent
    /// on the declarations of the argument enumerations in the search classes.
    /// </summary>
    public static class ArgStrings
    {
        public static readonly string[] 
            hlmap = { "af", "sq", "sm", "ar", "az", "eu", "be", "bn", "bh", "bs", 
            "bg", "ca", "zh-CN", "zh-TW", "hr", "cs", "da", "nl", "en", "eo", "et", "fo", "fi", "fr",
            "fy", "gl", "ka", "de", "el", "gu", "iw", "hi", "hu", "is", "id", "ia", "ga", "it", "ja",
            "jw", "kn", "ko", "la", "lv", "lt", "mk", "ms", "ml", "mt", "mr", "ne", "no", "nn", "oc",
            "fa", "pl", "pt-BR", "pt-PT", "pa", "ro", "ru", "gd", "sr", "si", "sk", "sl", "es", "su",
            "sw", "sv", "tl", "ta", "te", "th", "ti", "tr", "uk", "ur", "uz", "vi", "cy", "xh", "zu" };
                                                     
        public static readonly string[] 
            lrmap = { "all", "lang_ar", "lang_bg", "lang_ca", "lang_zh-CN", "lang_zh-TW",
            "lang_hr", "lang_cs", "lang_da", "lang_nl", "lang_en", "lang_et", "lang_fi", "lang_fr",
            "lang_de", "lang_el", "lang_iw", "lang_hu", "lang_is", "lang_id", "lang_it", "lang_ja",
            "lang_ko", "lang_lv", "lang_lt", "lang_no", "lang_pl", "lang_pt", "lang_ro", "lang_ru",
            "lang_sr", "lang_sk", "lang_sl", "lang_es", "lang_sv", "lang_tr" };

        public static readonly string[] 
            rsmap = { "small", "large" };
        
        public static readonly string[] 
            sfmap = { "off", "moderate", "active" };
            
        public static readonly string[] 
            ismap = { "all", "icon", "small", "medium", "large", "xlarge", "xxlarge", "huge" };
            
        public static readonly string[] 
            cmap = { "all", "mono", "gray", "color" };
            
        public static readonly string[] 
            itmap = { "all", "face", "news", "photo", "clipart" };
            
        public static readonly string[] 
            ftmap = { "all", "jpg", "png", "gif", "bmp" };
            
        public static readonly string[] 
            rmap = { "none", "cc_attribute" };
            
        public static readonly string[]
            lrtmap = { "blended", "kmlonly", "localonly" };
            
        public static readonly string[]
            ntmap = { "all", "h", "w", "b", "n", "t", "el", "p", "e", "s", "m" };
            
        public static readonly string[]
            nemap = { "us", "es_us", "es_ar", "au", "nl_be", "fr_be", "en_bw", "pt-BR_br", "ca", "fr_ca", 
            "es_cl", "es_co", "es_cu", "cs_cz", "de", "es", "en_et", "fr", "en_gh", "in", "en_ie", "it",
            "en_ke", "hu_hu", "es_mx", "en_my", "en_na", "nl_nl", "nz", "en_ng", "no_no", "de_at", "en_pk",
            "es_pe", "en_ph", "pl_pl", "pt-PT_pt", "de_ch", "fr_ch", "en_sg", "en_za", "sv_se", "en_tz",
            "tr_tr", "en_ug", "uk", "es_ve", "en_zw", "cn", "hk", "jp", "kr", "tw", "iw_il", "el_gr",
            "ar_me", "ru_ru", "hi_in", "ta_in", "ml_in", "te_in" };
    }

}